Skip to content

Comments

Change tz argument for datetime.datetime.replace()#2026

Merged
tykling merged 1 commit intobornhack:mainfrom
0xUnicorn:bugfix/replace-tz-with-tzinfo
Feb 4, 2026
Merged

Change tz argument for datetime.datetime.replace()#2026
tykling merged 1 commit intobornhack:mainfrom
0xUnicorn:bugfix/replace-tz-with-tzinfo

Conversation

@0xUnicorn
Copy link
Contributor

Exception caused by the bug

Traceback (most recent call last):
  File "/home/csh/dev/bornhack/bornhack-website/./src/manage.py", line 14, in <module>
    execute_from_command_line(sys.argv)
    ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
  File "/home/csh/dev/bornhack/bornhack-website/.venv/lib/python3.14/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
    utility.execute()
    ~~~~~~~~~~~~~~~^^
  File "/home/csh/dev/bornhack/bornhack-website/.venv/lib/python3.14/site-packages/django/core/management/__init__.py", line 436, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
  File "/home/csh/dev/bornhack/bornhack-website/.venv/lib/python3.14/site-packages/django/core/management/base.py", line 416, in run_from_argv
    self.execute(*args, **cmd_options)
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
  File "/home/csh/dev/bornhack/bornhack-website/.venv/lib/python3.14/site-packages/django/core/management/base.py", line 460, in execute
    output = self.handle(*args, **options)
  File "/home/csh/dev/bornhack/bornhack-website/src/utils/management/commands/bootstrap_devsite.py", line 41, in handle
    bootstrap.bootstrap_full(options)
    ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
  File "/home/csh/dev/bornhack/bornhack-website/src/utils/bootstrap/base.py", line 2312, in bootstrap_full
    self.bootstrap_base(options)
    ~~~~~~~~~~~~~~~~~~~^^^^^^^^^
  File "/home/csh/dev/bornhack/bornhack-website/src/utils/bootstrap/base.py", line 2550, in bootstrap_base
    self.bootstrap_camp(options)
    ~~~~~~~~~~~~~~~~~~~^^^^^^^^^
  File "/home/csh/dev/bornhack/bornhack-website/src/utils/bootstrap/base.py", line 2436, in bootstrap_camp
    self.generate_speaker_availability(camp)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
  File "/home/csh/dev/bornhack/bornhack-website/src/utils/bootstrap/base.py", line 1214, in generate_speaker_availability
    save_speaker_availability(form, sp)
    ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
  File "/home/csh/dev/bornhack/bornhack-website/src/program/utils.py", line 174, in save_speaker_availability
    ).replace(tz=tz),
      ~~~~~~~^^^^^^^
TypeError: replace() got an unexpected keyword argument 'tz'

@tykling tykling merged commit ed47b98 into bornhack:main Feb 4, 2026
1 of 2 checks passed
@0xUnicorn 0xUnicorn deleted the bugfix/replace-tz-with-tzinfo branch February 4, 2026 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants